package com.benmei.weike.dao;

import com.benmei.weike.entity.Student;
import com.benmei.weike.web.vo.my.RecordingDetailResponse;
import com.benmei.weike.web.vo.my.RecordingVo;
import com.benmei.weike.web.vo.my.ReserveVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StudentDao {
    int insert(@Param("pojo") Student pojo);

    int insertSelective(@Param("pojo") Student pojo);

    int insertList(@Param("pojos") List<Student> pojo);

    int update(@Param("pojo") Student pojo);

    Student getById(Integer memb_id);

    Student getByIncourseUid(@Param("incourse_uid") String incourse_uid);

    Long findReserveCount(@Param("memb_id")Integer memb_id);

    List<ReserveVo> findReserve(@Param("memb_id")Integer memb_id, RowBounds rowBounds);

    List<RecordingVo> findRecordingDetail(@Param("room_id")Integer room_id);
}
